package org.dromara.mall.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 商品属性值对象 mall_goods_skus
 *
 * @author Lion Li
 * @date 2024-05-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mall_goods_skus")
public class MallGoodsSkus extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 商品ID
     */
    private Long goodsId;
    /*规格属性组合 JSON字符串*/
    private String attributes;
    /*规格ID*/
    private String specId;
    /*sku名称*/
    private String skuName;
    /**
     * 条形码
     */
    private String barCode;
    /* 商品编号*/
    private String skuCode;


    /**
     * 主图
     */
    private String imgUrl;

    /**
     * 商品价格
     */
    private BigDecimal price;

    /**
     * 市场价格
     */
    private BigDecimal oldPrice;

    /**
     * 库存
     */
    private Integer stock;
    /*销量*/
    private Long sale;

/*其他*/



}
